<template>
  <div>
    <h1>子集数据为：{{child_message}}</h1>
    <Child @sendData="sd" :msg="father_message"></Child>
    <Sister></Sister>
    <Brother></Brother>
  </div>

</template>

<script>
  import Child from "./components/Child"
  import Sister from "./components/Sister"
  import Brother from "./components/Brother"
  // import store from "./store"
  export default{
    components:{Child,Sister,Brother},
    data(){
      return{
        father_message:"hello world",
        child_message:""
      }
    },
    methods:{
      sd(childData){
        this.child_message = childData
      }
    }
  }
</script>

<style>

</style>
